<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>节流函数</title>
    <style>
        #circle {
            width: 40px;
            height: 40px;
            text-align: center;
            background-color: red;
            color: white;
            border: 2px solid;
            border-radius: 50%;
        }

        #circle.fade{
            background-color: white;
            transition: all 1s;
        }
    </style>
</head>
<body>

<div id="circle">0</div>
<button id="btn">+1</button>

<script src="throttleDemo.js"></script>
</body>
</html>